xen: arm64: more useful logging on bad trap.
authorIan Campbell <ian.campbell@citrix.com>
Wed, 18 Feb 2015 17:01:55 +0000 (17:01 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 19 Feb 2015 16:48:52 +0000 (16:48 +0000)
commit2a9204bf9c0aaadf64434e8b45da9bb5a1784ee1
treeef9c21f8f94c9d84fe06635647e2d607084df7ba
parent85bae367e73021b8e74e46ee7594bdd4f82e144f
xen: arm64: more useful logging on bad trap.

Dump the register state before panicing so we have some clue where the
issue occurred. Also decode the ESR register a bit to save having to
grab a pen and paper.

ESR_EL2 is a 32-bit register, so use SYSREG_READ32 not ..._READ64, as
we already do correctly in the main trap handler.

While here notice that do_trap_serror is never called and remove it.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
Tested-by: Jintack Lim <jintack@cs.columbia.edu>
Cc: jintack@cs.columbia.edu
[ ijc -- add missing \n to first printk ]
xen/arch/arm/arm64/traps.c